var BonusObjects = MapObjects.extend({
	init: function(id, config){
		this._super(id, config);
		this.bonus = true;
		this.value = mapObjectsSpecs[config.type].val;
		this.bonusFunction =  mapObjectsSpecs[config.type].bonusFunction;
	},
	getBonus: function(hero, container){
		//this.bonusFunction(hero);
		if(this.bonusFunction(hero)){
			delete container[this.id];
		}
	}
	
});